using System;

namespace Newtonsoft.Json.Converters
{
	public abstract class DateTimeConverterBase : JsonConverter
	{
		public override bool CanConvert(Type objectType)
		{
			if (!(objectType == typeof(DateTime)) && !(objectType == typeof(DateTime?)))
			{
				if (!(objectType == typeof(DateTimeOffset)) && !(objectType == typeof(DateTimeOffset?)))
				{
					return false;
				}
				return true;
			}
			return true;
		}
	}
}
